package com.fantastic.service.zjs;

import com.fantastic.model.pojo.zjs.MemberVariety;

import java.util.List;

/**
 * @author: rxx
 * @since: 2024/6/4 16:22
 * @description: 会员卡和菜品关联表service接口
 */

public interface MemberVarietyService {
    /**
     * 查询会员卡和菜品关联信息
     *
     * @param memberVariety
     * @return
     */
    List<MemberVariety> listMemberVariety(MemberVariety memberVariety);

    /**
     * 查询单个会员卡和菜品关联信息
     *
     * @param memberId
     * @param varietyId
     * @return
     */
    MemberVariety getMemberVariety(Integer memberId, Integer varietyId);

    /**
     * 添加会员卡和菜品关联信息
     *
     * @param memberVariety
     * @return
     */
    Integer insertMemberVariety(MemberVariety memberVariety);

    /**
     * 修改会员卡和菜品关联信息
     *
     * @param memberVariety
     * @return
     */
    Integer updateMemberVariety(MemberVariety memberVariety);

    /**
     * 删除会员卡和菜品关联信息
     *
     * @param memberId
     * @param varietyId
     * @return
     */
    Integer deleteMemberVariety(Integer memberId, Integer varietyId);
}
